body {
    min-width: 1200px;
    background: #f5f5f5;
}

a:hover {
    color: #ff6a00;
}

.container {
    width: 1200px !important;
    margin: 0 auto !important;
}

a {
    color: #333333;
    text-decoration: none;
}

// 头部设计
#header {
    border-bottom: 2px solid #ff6a00;
    margin-bottom: 30px;
    background: #fff;

    .container {
        height: 100px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        //    logo部分设计
        .logo {
            display: flex;
            align-items: center;

            img {
                width: 60px;
                height: 60px;
                margin-right: 40px;
            }

            h1 {
                font-size: 30px;
                font-weight: 500;
            }

            span {
                margin-top: 20px;
                margin-left: 20px;
                font-size: 14px;
                color: #757575;
            }
        }

        // 显示登录注册已经用户信息部分设计
        .user {
            display: flex;
            width: 100px;
            justify-content: space-evenly;
            
        }

    }
}

//购物车商品列表设计
#cart {
    background: #fff;

    .container {
        table {
            width: 100%;

            input[ type=checkbox] {
                cursor: pointer;
                width: 20px;
                height: 20px;
                 margin-left: 20px;
                
            }

            tr {
                border-bottom: 2px solid #f5f5f5;
                
                td:nth-child(1) {
                    width: 100px;
                    height: 120px;
                    text-align: left;
                    margin-left: 20px;
                    
                }

                td:nth-child(2) {
                    width: 400px;
                    height: 120px;
                    text-align: center;
                    font-size: 20px;
                    font-weight: 400;
                    h1{
                        width: 400px;
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        img {
                            width: 100px;
                            height: 100px;
                        }
                    }
                   
                }

                td:nth-child(3) {
                    width: 100px;
                    height: 120px;
                    text-align: center;
                }

                td:nth-child(4) {
                    width: 400px;
                    height: 120px;
                    text-align: center;

                    button {
                        width: 40px;
                        height: 40px;
                        border: 1px solid #757575;
                        background: #fff;
                        box-sizing: border-box;
                        vertical-align: middle;
                        font-size: 18px;

                        &:hover {
                            background: #afacac;
                        }
                    }
                    .disabled{
                        cursor: not-allowed;
                    }

                    button:nth-child(1) {
                        border-right: none;
                    }

                    button:nth-child(3) {
                        border-left: none;
                    }

                    input {
                        width: 70px;
                        height: 40px;
                        border: none;
                        border-top: 1px solid #757575;
                        border-bottom: 1px solid #757575;
                        outline: none;
                        padding: 0px;
                        text-align: center;
                        color: #424242;
                        font-size: 16px;
                        box-sizing: border-box;
                        vertical-align: middle;
                    }
                }

                td:nth-child(5) {
                    width: 100px;
                    height: 120px;
                    text-align: center;
                    color: #ff6700;
                    font-size: 18px;
                    font-weight: 600;
                }

                td:nth-child(6) {
                    width: 100px;
                    height: 120px;
                    text-align: center;

                    a {
                        display: inline-block;
                        width: 25px;
                        height: 25px;
                        border-radius: 50%;
                        font-size: 18px;
                        line-height: 18px;
                        text-align: center;
                        font-weight: bold;

                        &:hover {
                            background-color: #ff6700;
                            color: #fff;
                        }
                    }
                }
            }

            tr:nth-child(1) {
                height: 70px;
                line-height: 70px;
                text-align: center;
                th:nth-child(1) {
                    text-align: left;
                   
                }
            }
        }

        // 合计设计
        .total {
            border-top: 20px solid #f5f5f5;
            width: 100%;
            height: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;

           .left {
                color: grey;
              
                a {
                    color: grey;
                    &:hover{
                       color: #ff6a00;
                    }
                }
                span{
                    color: #ff6a00;
                    margin: 0px 5px ;
                }
            }
           .right{
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #ff6700;
                .totalPrice{
                    margin-right: 20px;
                    span{
                        font-size: 30px;
                        margin: 0px 5px;
                    }
                }
                .settlement{
                    line-height: 50px;
                    text-align: center;
                    height: 50px;
                    width: 200px;
                    background: #ff6700;
                    color: #fff;
                    font-size: 20px;
                }
            }
        }
    }
}